using System;
using System.Collections.Generic;
using System.Windows.Forms;

using HunterPluginSDK;
using HunterPluginSDK.Interface;


namespace MyHunter
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DataSchema.Settings.SettingsMgr.StartUpPath = Application.StartupPath + "\\";
            Form frm = new HunterForm();
            Engine.IO.CsvFileWatcher.Instance.InitWatcher(DataSchema.Settings.SettingsMgr.WatcherSettings, frm as IProgressHandler);

            HunterPluginSDK.PluginsFactory.Instance.ReadPlugins(Application.StartupPath + "\\" + Constants.PlugInsDir, frm as IProgressHandler);

            Application.Run(frm);
            Engine.IO.CsvFileWatcher.Instance.CloseWatcher();
        }
    }
}